xml.instruct! :xml, :version=>"1.0" 
xml.rss(:version=>"2.0"){
  xml.channel{
    xml.title('ioncommunications.com.ua posts')
    xml.link(@user.nil? ? community_posts_url(@community, :format => 'rss') : user_posts_url(@user, :format => 'rss'))
    xml.description("#{ @user.nil? ? @community.title : @user.login} posts")
    xml.language('ru')

    for post in @posts
      xml.item do
        xml.title(post.title)
        xml.category()
        xml.description(post.content)
        xml.pubDate(CGI.rfc1123_date post.created_at)
        xml.link(user_post_url(post.user, post))
        xml.guid(user_post_url(post.user, post))
      end
    end
  }
}
